package testing;


import static org.junit.Assert.assertEquals;

import org.junit.Before;
import org.junit.Test;

import utility.DataFilter;

public class DataFilterTest {
	private DataFilter filter;
	private String [][] str_list;
	private String [] str;
	@Before
	public void setUp() throws Exception {
		this.str_list = new String[3][];
		String [] str1 = {"charles","ng"};
		String [] str2 = {"edwin"};
		String [] str3 = {"I","am","apple"};
		str_list[0] = str1;
		str_list[1] = str2;
		str_list[2] = str3;
		String [] str = {"charles","ng"};
		this.str = str;
	}
	
	@Test
	public void basic()
	{
		boolean result = DataFilter.isexisted(this.str, this.str_list);
		assertEquals(result,true);
	}
}
